package com.itbupt.eat.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/2 1:48
 * ClassName: OrderDetail
 * Description:
 */

@Data
public class OrderDetail {
    private static final Long serialVersionUID = 8L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    private String image;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long dishId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long setmealId;

    private String dishFlavor;

    private Integer number;

    private BigDecimal amount;
}
